package moder

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(100)"`
	Password string `gorm:"type:varchar(100)"`
}

type Rode struct {
	gorm.Model
	UserRode string `gorm:"type:varchar(100)"`
}

type UserRode struct {
	gorm.Model
	Uid string `gorm:"type:int"`
	Rid string `gorm:"type:int"`
}

type Node struct {
	gorm.Model
	RodeNode string `gorm:"type:varchar(100)"`
}

type RodeNode struct {
	gorm.Model
	Rid string `gorm:"type:int"`
	Nid string `gorm:"type:int"`
}

type Goods struct {
	gorm.Model
	GoodsNo   string `gorm:"type:varchar(100)"`
	GoodsName string `gorm:"type:varchar(100)"`
}

type Order struct {
	gorm.Model
	OrderNo    string `gorm:"type:varchar(100)"`
	OrderName  string `gorm:"type:varchar(100)"`
	OrderPrice int    `gorm:"type:int"`
	Gid        int    `gorm:"type:int"`
}

type GoodsOrder struct {
	ID         string
	GoodsNo    string
	GoodsName  string
	OrderNo    string
	OrderName  string
	OrderPrice string
}
